package com.iwdnb.gkgz.common.quota;

import java.util.List;

import com.iwdnb.bmnf.common.utils.BeanConvertUtils;
import com.iwdnb.gkgz.common.model.dto.StockDayData;
import org.apache.commons.lang3.StringUtils;

public class IndicatorUtils {
    public static List<StockDayData> fixDatetime(List<StockDayData> dataList) {
        dataList = BeanConvertUtils.convertList(dataList, StockDayData.class);
        for (StockDayData data : dataList) {
            if (StringUtils.isBlank(data.getDatetime())) {
                data.setDatetime(data.getDate() + " 00:00:00");
            }
        }
        return dataList;
    }
}
